from django.shortcuts import render
from json import dumps

from numpy import sinc
from .models import Record
from django.forms.models import model_to_dict

# Create your views here.
async def addRecord(o:Record):
    text=model_to_dict(o)
    text=dumps(text)
    o.json=text
    await o.save()
